<template>
    <div class='home-container'>
        <SideNav :openeds="openeds" :activeTab="activeTab"></SideNav>
        <div class='right-container'>
            <Header class="header" :headerList="headerList"></Header>
            <div class="right-content white-color">
                <div class="title">
                    <img src="../../src/assets/img/welcome/star.png" alt="" class='star'>
                    <span>数学</span>
                </div>
                <div class="content">
                    <div class="title-course">
                        <span>第三讲</span>
                        <span>奥数的秘密</span>
                        <span class='green-color'>课程回放</span>
                    </div>
                    <div class="class-name">班级名称：奥数的秘密突击一班</div>
                    <div class="class-time">开课时间：2019-11-09 12:00至2019-12-08 13:00</div>
                    <div class="class-show">
                        <div class="left-show">
                            <div class="show-text">
                                <img src="../../src/assets/img/welcome/show.png" alt="" class="show-icon">
                                <span>教学直播</span>
                            </div>
                            <img src="../../src/assets/img/welcome/blueClass.png" alt="" class="student-class">
                            <div class="ins-text">支持PC、MAC、IOS、Android、Ipad</div>
                            <div class='suggest-text'>（建议使用客户端直播，体验最好，低延时）</div>
                            <div class="down-btn">
                                <div>
                                    PC下载
                                </div>
                                <div>
                                    MAC下载
                                </div>
                            </div>
                        </div>
                        <div class="right-show">
                            <div class="show-text right-text">
                                <img src="../../src/assets/img/welcome/pc.png" alt="" class="show-icon">
                                第一次直播，请下载最新客户端
                            </div>
                            <div class="orange-step">
                                <div class="circle">1</div>
                                <div class="circle">2</div>
                                <div class="circle">3</div>
                                <div class="orange-line line1"></div>
                                <div class="orange-line line2"></div>
                            </div>
                            <div class="step-text">
                                <div class="down1">
                                    <div class="down-zh">下载客户端</div>
                                    <div class="down-eh">DOWNLOAD</div>
                                </div>
                                <div class="down2">
                                    <div class="down-zh">安装客户端</div>
                                    <div class="down-eh">REGISTER</div>
                                </div>
                                <div class="down3">
                                    <div class="down-zh">点击下方启动按钮</div>
                                    <div class="down-eh">AUDITING</div>
                                </div>
                            </div>
                            <div class="start-show">点击启动直播</div>
                            <div class="open-class">启动客户端时，请注册同意浏览器打开“云端课堂”</div>
                            <div class="click-here">如果无法使用客户端，可以<a href="">点击这里</a>使用网页版直播</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import Header from '../../src/components/Header'
import SideNav from '../../src/components/SideNav'
export default {
    name: 'home',
    data() {
        return {
            headerList: ['直播', '直播大班课', '进入教室'],
            openeds: ['b', 'b-3'],
            activeTab: 'Show'
        }
    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath)
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath)
        }
    },
    components: {
        Header,
        SideNav
    }
}

</script>
<style lang="less" scoped>
    @import url('../../src/assets/less/Mixins.less');
    @import url('../../src/assets/less/common.less');

    html,
    body {
        height: 100%
    }

    .right-content {
        .title {
            width: 100%;
            height: 56px;
            border-bottom: solid 2px #E8E9EA;
            line-height: 56px;

            img {
                margin-left: 24px;
                margin-right: 4px;
                position: relative;
                top: 2px;

            }
        }

        .content {
            width: calc(100% - 52px);
            margin: auto;
            height: calc(100% - 60px);

            .class-name,
            .class-time {
                margin-bottom: 10px;
                font-size: 14px;
                font-family: PingFang-SC-Regular;
                font-weight: 400;
                color: rgba(78, 84, 108, 1)
            }

            .title-course {
                height: 50px;
                line-height: 50px;
                font-size: 16px;
                font-family: PingFang-SC-Regular !important;
                font-weight: 500;
                color: rgba(78, 84, 108, 1);

                span {
                    margin-right: 12px
                }

                .green-color {
                    width: 81px;
                    height: 24px;
                    background: rgba(235, 245, 255, 1);
                    border-radius: 2px;
                    border: 1px solid rgba(85, 168, 253, 1);
                    font-size: 14px;
                    font-family: PingFang-SC-Regular;
                    font-weight: 400;
                    padding: 1px 12px;
                    cursor: pointer;
                    color: rgba(85, 168, 253, 1);
                }
            }

            .inner {
                .flex(row, space-between, center, nowrap);

                >span {
                    margin-right: 22px;
                    font-size: 14px;
                    font-family: PingFang-SC-Regular;
                    font-weight: 400;
                    color: rgba(72, 87, 106, 1);
                }
            }

            .class-show {
                width: calc(100% - 314px);
                min-width: 980px;
                min-height: 384px;
                height: calc(100% - 220px);
                background: rgba(250, 250, 250, 1);
                box-shadow: 0px -1px 16px 0px rgba(9, 74, 136, 0.14);
                border-radius: 2px;
                margin-top: 20px;

                font-size: 14px;
                font-family: PingFang-SC-Regular;
                font-weight: 400;
                color: rgba(96, 98, 102, 1);

                .show-icon {
                    width: 15px;
                    height: 15px;
                    margin-right: 4px;
                    position: relative;
                    top: 2px;
                }

                .show-text {
                    height: 66px;
                    line-height: 66px;
                    text-align: center;

                }

                .right-text {
                    margin-bottom: 40px;
                }

                .suggest-text {
                    margin-top: 15px;
                }

                .flex(row, space-between, top, nowrap);

                .left-show {
                    width: 50%;
                    text-align: center;
                    border-right: solid 2px #E8E9EA;

                    .student-class {
                        width: calc(100% - 88px);
                        min-height: 154px;
                        height: calc(100% - 230px);
                        // height: 154px;

                    }

                    .ins-text {
                        margin-top: 20px
                    }

                    .down-btn {
                        margin-top: 20px;
                        padding: 0px 44px;

                        div {
                            width: 98px;
                            height: 35px;
                            line-height: 35px;
                            background: #55A8FD;
                            border-radius: 18px;
                            font-size: 14px;
                            font-family: PingFang-SC-Regular;
                            font-weight: 400;
                            color: rgba(255, 255, 255, 1);
                            float: left;
                        }

                        div:last-child {
                            float: right;
                            margin-right: 8px;
                        }

                        div:first-child {
                            margin-left: 8px;
                        }
                        >div{
                            cursor: pointer;
                        }
                    }
                }

                .right-show {
                    width: 50%;
                    text-align: center;

                    .orange-step {
                        position: relative;
                        /*width: calc(100% - 112px);*/
                        width: 76.1%;
                        min-height: 56px;
                        height: 56px;
                        margin: auto;
                        .flex(row, space-between, center, nowrap);

                        .orange-line {
                            position: absolute;
                            width: calc((100% - 170px)/2);
                            height: 2px;
                            /*top: 34%;*/
                            top: 28px;
                            background: #FFE8A7
                        }

                        .line1 {
                            left: 56px;
                            position: absolute;
                        }

                        .line2 {
                            left: calc((100% - 170px)/2 + 114px);
                            /*width: calc((100% - 190px)/2);*/
                            position: absolute;
                            /*width: 33%;*/
                        }

                    }

                    .step-text {
                        /*width: calc(100% - 112px);*/
                        /*width: 76.1%;*/
                        width: 100%;
                        min-height: 90px;
                        /*height: calc(100% - 260px);*/
                        margin: auto;
                        .flex(row, space-between, top, nowrap);

                        .down-zh {
                            margin-top: 10px;
                            font-size: 10px;
                            font-family: PingFangSC-Medium;
                            font-weight: 500;
                            color: rgba(53, 53, 53, 1);

                        }

                        .down-eh {
                            margin-top: 10px;
                            font-size: 6px;
                            font-family: PingFangSC-Regular;
                            font-weight: 400;
                            color: rgba(53, 53, 53, 0.234);
                            margin-bottom: 20px;

                        }

                        .down1 {
                            width: 33.33%;
                            text-align: center;
                        }

                        .down2 {
                            width: 33.33%;
                            text-align: center;
                        }

                        .down3 {
                            width: 33.33%;
                            text-align: center;
                        }
                    }

                    .start-show {
                        width: 118px;
                        height: 34px;
                        background: #55A8FD;
                        border-radius: 17px;
                        font-size: 14px;
                        font-family: PingFang-SC-Regular;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        text-align: center;
                        line-height: 34px;
                        margin: auto;
                        margin-bottom: 36px;
                        cursor: pointer;

                    }

                    .open-class {
                        margin-bottom: 15px;
                    }

                    .click-here {
                        a {
                            text-decoration: none;
                            color: #409EFF;
                        }
                    }

                    .circle {
                        background: url('../../src/assets/img/welcome/circle.png') center center;
                        width: 56px;
                        height: 56px;
                        background-size: 100%;
                        color: #fff;
                        text-align: center;
                        line-height: 56px;
                        font-size: 20px;
                        font-weight: 400
                    }
                }
            }
        }
    }

</style>
<style lang="less">
    .left-container {
        ul {
            background-color: #22345E
        }
    }

    .btn-group {
        >div {
            text-align: center
        }
    }

    .date-line {
        text-align: center !important
    }

    .star {
        width: 15px;
        height: 15px;
        background: rgba(255, 171, 43, 1);
        border-radius: 1px;
    }

    // 下拉选
    .el-select-dropdown__item.hover,
    .el-select-dropdown__item:hover {
        background-color: #55a8fd !important;
        color: #ffffff !important;
    }

    .el-select-dropdown__list {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        font-size: 14px !important;
        font-family: PingFang-SC-Regular !important;
        font-weight: 400;
    }

    .popper__arrow {
        display: none !important;
    }

    // 日历
    .el-picker-panel__body {
        font-family: PingFang-SC-Regular !important;
    }

    @import url('../../src/assets/less/override-element-ui.less');

</style>
